package com.ruoyi.control.service.impl;

import java.util.List;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; //添加
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.control.mapper.PumpOperationRecordMapper;
import com.ruoyi.control.domain.PumpOperationRecord;
import com.ruoyi.control.service.IPumpOperationRecordService;

/**
 * 水泵操作记录Service业务层处理
 * 
 * @author ruoyi
 * @date 2024-12-07
 */
@Service
public class PumpOperationRecordServiceImpl extends ServiceImpl<PumpOperationRecordMapper, PumpOperationRecord> implements IPumpOperationRecordService //修改
{
    @Autowired
    private PumpOperationRecordMapper pumpOperationRecordMapper;

    /**
     * 查询水泵操作记录
     * 
     * @param pumpOperationRecordId 水泵操作记录主键
     * @return 水泵操作记录
     */
    @Override
    public PumpOperationRecord selectPumpOperationRecordByPumpOperationRecordId(Long pumpOperationRecordId)
    {
        return pumpOperationRecordMapper.selectPumpOperationRecordByPumpOperationRecordId(pumpOperationRecordId);
    }

    /**
     * 查询水泵操作记录列表
     * 
     * @param pumpOperationRecord 水泵操作记录
     * @return 水泵操作记录
     */
    @Override
    public List<PumpOperationRecord> selectPumpOperationRecordList(PumpOperationRecord pumpOperationRecord)
    {
        return pumpOperationRecordMapper.selectPumpOperationRecordList(pumpOperationRecord);
    }

    /**
     * 新增水泵操作记录
     * 
     * @param pumpOperationRecord 水泵操作记录
     * @return 结果
     */
    @Override
    public int insertPumpOperationRecord(PumpOperationRecord pumpOperationRecord)
    {
        return pumpOperationRecordMapper.insertPumpOperationRecord(pumpOperationRecord);
    }

    /**
     * 修改水泵操作记录
     * 
     * @param pumpOperationRecord 水泵操作记录
     * @return 结果
     */
    @Override
    public int updatePumpOperationRecord(PumpOperationRecord pumpOperationRecord)
    {
        return pumpOperationRecordMapper.updatePumpOperationRecord(pumpOperationRecord);
    }

    /**
     * 批量删除水泵操作记录
     * 
     * @param pumpOperationRecordIds 需要删除的水泵操作记录主键
     * @return 结果
     */
    @Override
    public int deletePumpOperationRecordByPumpOperationRecordIds(Long[] pumpOperationRecordIds)
    {
        return pumpOperationRecordMapper.deletePumpOperationRecordByPumpOperationRecordIds(pumpOperationRecordIds);
    }

    /**
     * 删除水泵操作记录信息
     * 
     * @param pumpOperationRecordId 水泵操作记录主键
     * @return 结果
     */
    @Override
    public int deletePumpOperationRecordByPumpOperationRecordId(Long pumpOperationRecordId)
    {
        return pumpOperationRecordMapper.deletePumpOperationRecordByPumpOperationRecordId(pumpOperationRecordId);
    }

    /**
     * 查询水泵操作记录列表DECS
     */
    @Override
    public List<PumpOperationRecord> selectPumpOperationRecordlistDesc(PumpOperationRecord pumpOperationRecord) {
        return pumpOperationRecordMapper.selectPumpOperationRecordlistDesc(pumpOperationRecord);
    }
}
